package com.imonsoft.sqm.service.business.supplier_quality;

import java.util.List;

import org.springframework.validation.BindingResult;

import com.imonsoft.common.base.service.BaseService;
import com.imonsoft.common.httpModel.DataGrid;
import com.imonsoft.common.httpModel.Pager;
import com.imonsoft.common.httpModel.ReturnMessage;
import com.imonsoft.sqm.pojo.business.supplier_quality.Audit;
import com.imonsoft.sqm.vo.business.supplier_quality.AuditVo;

public interface AuditService extends BaseService<Audit>{

	DataGrid<AuditVo> getDataGridVoBy(AuditVo auditVo, Pager pager) throws Exception;

	void txAddAudit(AuditVo auditVo, ReturnMessage message, BindingResult result) throws Exception;

	DataGrid<AuditVo> getDataGridVoBySupplier(AuditVo auditVo, Pager pager) throws Exception;

	void deleteAudit(List<Long> ids);

	
	public AuditVo getAuditVoByid(Long id) throws Exception;

	void txUpdateOrAddAudit(AuditVo auditVo) throws Exception;
	
	List<Audit> selectAuditByAudit(Audit audit);
}
